.ant-btn.ant-btn-sm {
  font-size: 12px;
}
// .ant-card{
//   background-color: #fcfcfc;
// }
.ant-badge-count {
  box-shadow: none !important;
}

.ant-btn-link {
  color: var(--primary-color);

  &:not(:disabled):hover {
    color: var(--primary-color);
    background-color: var(--heavy-color);
  }
}

.ant-layout .ant-layout-sider {
  background-color: var(--bg-color);
}

.ant-tabs-nav {
  margin-bottom: 8px !important;
}

.ant-table-title,
.ant-table-footer {
  padding: 8px !important;
  background-color: transparent !important;
}

.ant-menu-item {
  padding: 0 16px;
}

.ant-radio-button-wrapper {
  padding: 0 16px;
}

.ant-popover:not(.ant-popconfirm) {

  // padding-top: 0;
  // border: 1px solid #77777730;
  .ant-popover-inner {
    padding: 0 !important;
  }
}

.ant-form-item .ant-form-item-label>label::after {
  content: '';
}

.ant-tabs-card {
  .ant-tabs-nav-list {
    border-right: 1px solid var(--border-color) !important;
  }

  .ant-tabs-tab {
    margin-left: 0 !important;
    border-right: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
  }

  .ant-tabs-tab-active::before {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    content: '';
  }
}

.ant-tabs-content-holder {
  overflow: auto;
}

.ant-modal-content {
  .ant-table-wrapper .ant-table.ant-table-middle .ant-table-thead>tr>th {
    padding: 12px 8px;
  }
}

.ant-modal-content {
  .ant-table-wrapper .ant-table.ant-table-middle .ant-table-tbody>tr>td {
    padding: 12px 8px;
  }
}

.tag-style() {
  padding: 0 10px;
  border-radius: 20px;
}

.ant-tag-green,
.ant-tag-success {
  .tag-style();
  color: rgb(18, 161, 80);
  background-color: transparent;
  border-color: rgb(18, 161, 80);
}

.ant-tag-blue {
  .tag-style();
  color: rgb(0, 112, 240);
  background-color: transparent;
  border-color: rgb(0, 112, 240);
}

.ant-tag-red {
  .tag-style();
  color: rgb(243, 18, 96);
  background-color: transparent;
  border-color: rgb(243, 18, 96);
}

.ant-tag-orange {
  .tag-style();
  color: rgb(212, 107, 8);
  background-color: transparent;
  border-color: rgb(212, 107, 8);
}

.ant-tag-purple {
  .tag-style();
  color: purple;
  background-color: transparent;
  border-color: purple;
}

.ant-divider-horizontal.ant-divider-with-text::before,
.ant-divider-horizontal.ant-divider-with-text::after {
  transform: none;
}

.ant-table-expanded-row>td {
  padding: 16px !important;
}

.ant-menu-sub.ant-menu-inline {
  background-color: transparent !important;
}

.ant-table-wrapper .ant-table-tbody>tr.ant-table-row:hover>td {
  background-color: var(--secondary-color);
}

.ant-table-thead {
  height: 45px;
}

// .ant-menu-submenu-popup {
//   display: none;
// }
.ant-table-expanded-row {
  .ant-table {
    margin-inline: 0 !important;
  }
}

.ant-modal .ant-form-item-label {
  width: 86px;
  white-space: normal;
}

.ant-modal:not(.no-header-mark) {
  .ant-modal-header {
    margin-bottom: 28px;

    &::before {
      position: absolute;
      top: 20px;
      left: 0;
      width: 4px;
      height: 24px;
      background-color: var(--primary-color);
      content: '';
    }

    &::after {
      position: absolute;
      top: 60px;
      left: 0;
      width: 100%;
      height: 1px;
      background-color: var(--border-color);
      content: '';
    }
  }
}

.ant-table-pagination {
  margin-bottom: 8px !important;
}

.ant-input-affix-wrapper {
  &:hover {
    .ant-input-clear-icon:not(.ant-input-clear-icon-hidden) {
      visibility: visible;
    }
  }

  input {
    text-align: inherit;
  }
}

.ant-input-clear-icon {
  visibility: hidden;
}

.ant-input-number-disabled {
  .ant-input-number-input {
    color: var(--disabled-text-color);
  }
}

.ant-btn.ant-btn-circle.ant-btn-sm {
  width: 20px;
  min-width: 20px;
  height: 20px;
  font-size: 10px;
}
